---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/voter_id/Replication/table_a5.log
  log type:  text
 opened on:  17 Aug 2020, 14:52:07

. 
. use "$path/nc_dataset.dta" if new_reg == 0, clear

. 
. // drop 2018 
. drop if inlist(election, 11, 12)
(13,254,638 observations deleted)

. 
. drop black white hispanic othernw new_reg

. drop noid_p_2016 race_string race_by_year age_by_year race_by_age_by_year birth_year

. 
. 
. * match on pre-treatment turnout path
. * generate pre-treatment path
. ** focus only on people eligible the entire time period
. 
. ** generate number of pre-treatment primaries participated in 
. egen primaries = sum(voted) if mod(election,2) == 1 & election < 9, by(id)
(39763914 missing values generated)

. sort id primaries

. replace primaries = primaries[_n-1] if id == id[_n-1]
(39,763,914 real changes made)

. ** generate number of pre-treatment generals participated in
. egen generals = sum(voted) if mod(election,2) == 0 & election < 9, by(id)
(39763914 missing values generated)

. sort id generals

. replace generals = generals[_n-1] if id == id[_n-1]
(39,763,914 real changes made)

. 
. sort id election

. 
. ** create string encoding of possible pre-treatment outcome paths
. tostring voted, generate(outcome_path)
outcome_path generated as str1

. 
. by id: gen outcome_path_pretreat = outcome_path[1] + outcome_path[2] + ///
>                                                                 outcome_path[3] + outcome_path[4] + ///
>                                                                 outcome_path[5] + outcome_path[6] + ///
>                                                                 outcome_path[7] + outcome_path[8]

. 
. gen count = 1

. 
. // keep primaries only
. keep if mod(election,2) == 1
(33,136,595 observations deleted)

. 
. compress
  variable primaries was float now byte
  variable generals was float now byte
  variable count was float now byte
  (298,229,355 bytes saved)

. 
. 
. egen total_pre_treat = concat(primaries generals)

. 
. collapse (sum) count (mean) voted, by(total_pre_treat no_dmv_match election)

. 
. 
. *** get N by path by summing together n treated and n control
. by total_pre_treat: gen tot_tmp = count[6] if _n==6
(221 missing values generated)

. egen tot_treat = sum(tot_tmp), by(total_pre_treat)

. by total_pre_treat: replace tot_tmp = count[1] if _n == 1
(25 real changes made)

. egen tot = sum(tot_tmp), by(total_pre_treat)

. drop tot_tmp

. gen tot_control = tot - tot_treat

. 
. 
. 
. *** get weights for fw based on total n per stratum
. *** each stratum has 10 obs
. *** fw requires integers so need to round
. gen tot2 = round(tot/10)

. gen tot_treat2 = round(tot_treat/10)

. egen N = sum(tot2)

. 
. egen op = group(total_pre_treat)

. 
. reghdfe voted no_dmv_match [fw=tot_treat2], a(op election)
weight tot_treat2 can only contain strictly positive integers, but 5 zero values were found (will be dropped)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   =    218,730
Absorbing 2 HDFE groups                           F(   1, 218701) =     615.71
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.8740
                                                  Adj R-squared   =     0.8740
                                                  Within R-sq.    =     0.0028
                                                  Root MSE        =     0.0982

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0104181   .0004199   -24.81   0.000     -.011241   -.0095952
-------------+----------------------------------------------------------------
    Absorbed |     F(27, 218701) =  56149.745   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
          op |           24              24              0     | 
    election |            4               5              1     | 
---------------------------------------------------------------+

. 
. matrix results = J(25, 4, .)

. 
. forval i = 1(1)25 {
  2.         if `i' == 21 {
  3.                 continue
  4.         }
  5.         reghdfe voted no_dmv_match if op == `i' [fw=tot_treat2], a(election)
  6.         matrix results[`i', 1] = _b[no_dmv_match]
  7.         matrix results[`i', 2] = _se[no_dmv_match]
  8.         qui sum tot_treat if op == `i'
  9.         matrix results[`i', 3] = r(mean)
 10.         qui sum tot if op == `i'
 11.         matrix results[`i', 4] = r(mean)
 12. }
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     83,590
Absorbing 1 HDFE group                            F(   1,  83584) =   20896.00
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9010
                                                  Adj R-squared   =     0.9010
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0041

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0041266   .0000285  -144.55   0.000    -.0041826   -.0040707
-------------+----------------------------------------------------------------
    Absorbed |       F(4, 83584) = 184926.527   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     52,060
Absorbing 1 HDFE group                            F(   1,  52054) =   13013.50
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9680
                                                  Adj R-squared   =     0.9680
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0084

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0083569   .0000733  -114.08   0.000    -.0085004   -.0082133
-------------+----------------------------------------------------------------
    Absorbed |       F(4, 52054) = 389917.339   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =     14,520
Absorbing 1 HDFE group                            F(   1,  14514) =    3628.50
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9926
                                                  Adj R-squared   =     0.9926
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0062

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0062471   .0001037   -60.24   0.000    -.0064504   -.0060438
-------------+----------------------------------------------------------------
    Absorbed |       F(4, 14514) = 488644.431   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      5,040
Absorbing 1 HDFE group                            F(   1,   5034) =    1258.50
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9575
                                                  Adj R-squared   =     0.9575
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0197

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0196521    .000554   -35.48   0.000    -.0207381   -.0185661
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 5034) =  28061.486   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      2,630
Absorbing 1 HDFE group                            F(   1,   2624) =     656.00
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9858
                                                  Adj R-squared   =     0.9858
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0184

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0183531   .0007166   -25.61   0.000    -.0197582    -.016948
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 2624) =  45502.338   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      2,310
Absorbing 1 HDFE group                            F(   1,   2304) =     166.62
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9874
                                                  Adj R-squared   =     0.9874
                                                  Within R-sq.    =     0.0674
                                                  Root MSE        =     0.0195

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0104559     .00081   -12.91   0.000    -.0120444   -.0088675
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 2304) =  45173.008   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      7,100
Absorbing 1 HDFE group                            F(   1,   7094) =    1041.31
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9717
                                                  Adj R-squared   =     0.9717
                                                  Within R-sq.    =     0.1280
                                                  Root MSE        =     0.0299

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0228917   .0007094   -32.27   0.000    -.0242823   -.0215011
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 7094) =  60599.732   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      6,430
Absorbing 1 HDFE group                            F(   1,   6424) =     701.89
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9575
                                                  Adj R-squared   =     0.9575
                                                  Within R-sq.    =     0.0985
                                                  Root MSE        =     0.0345

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0227681   .0008594   -26.49   0.000    -.0244528   -.0210834
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 6424) =  35996.434   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      6,120
Absorbing 1 HDFE group                            F(   1,   6114) =     431.62
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9243
                                                  Adj R-squared   =     0.9242
                                                  Within R-sq.    =     0.0659
                                                  Root MSE        =     0.0545

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0289398    .001393   -20.78   0.000    -.0316705   -.0262091
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 6114) =  18545.401   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      7,270
Absorbing 1 HDFE group                            F(   1,   7264) =     293.24
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9533
                                                  Adj R-squared   =     0.9533
                                                  Within R-sq.    =     0.0388
                                                  Root MSE        =     0.0471

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0189344   .0011057   -17.12   0.000    -.0211019   -.0167669
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 7264) =  37030.255   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =        100
Absorbing 1 HDFE group                            F(   1,     94) =       0.50
                                                  Prob > F        =     0.4830
                                                  R-squared       =     0.9053
                                                  Adj R-squared   =     0.9002
                                                  Within R-sq.    =     0.0052
                                                  Root MSE        =     0.0722

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0101667   .0144369    -0.70   0.483    -.0388315     .018498
-------------+----------------------------------------------------------------
    Absorbed |          F(4, 94) =    224.444   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =        420
Absorbing 1 HDFE group                            F(   1,    414) =       9.23
                                                  Prob > F        =     0.0025
                                                  R-squared       =     0.9397
                                                  Adj R-squared   =     0.9390
                                                  Within R-sq.    =     0.0218
                                                  Root MSE        =     0.0574

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0170006   .0055973    -3.04   0.003    -.0280032    -.005998
-------------+----------------------------------------------------------------
    Absorbed |         F(4, 414) =   1610.197   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      1,590
Absorbing 1 HDFE group                            F(   1,   1584) =     146.82
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9266
                                                  Adj R-squared   =     0.9264
                                                  Within R-sq.    =     0.0848
                                                  Root MSE        =     0.0614

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0373431   .0030818   -12.12   0.000     -.043388   -.0312982
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 1584) =   4961.197   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      3,420
Absorbing 1 HDFE group                            F(   1,   3414) =     432.21
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9724
                                                  Adj R-squared   =     0.9724
                                                  Within R-sq.    =     0.1124
                                                  Root MSE        =     0.0439

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |   -.031216   .0015015   -20.79   0.000      -.03416   -.0282721
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 3414) =  29990.500   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      8,270
Absorbing 1 HDFE group                            F(   1,   8264) =    1014.82
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9888
                                                  Adj R-squared   =     0.9888
                                                  Within R-sq.    =     0.1094
                                                  Root MSE        =     0.0296

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0207658   .0006519   -31.86   0.000    -.0220436   -.0194879
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 8264) = 182133.027   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =         10
Absorbing 1 HDFE group                            F(   1,      4) =       0.08
                                                  Prob > F        =     0.7908
                                                  R-squared       =     0.9107
                                                  Adj R-squared   =     0.7991
                                                  Within R-sq.    =     0.0197
                                                  Root MSE        =     0.1023

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |   -.018345   .0646765    -0.28   0.791    -.1979158    .1612258
-------------+----------------------------------------------------------------
    Absorbed |           F(4, 4) =     10.182   0.022             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =         50
Absorbing 1 HDFE group                            F(   1,     44) =       0.21
                                                  Prob > F        =     0.6521
                                                  R-squared       =     0.9490
                                                  Adj R-squared   =     0.9432
                                                  Within R-sq.    =     0.0047
                                                  Root MSE        =     0.0587

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0075305   .0165913    -0.45   0.652     -.040968    .0259071
-------------+----------------------------------------------------------------
    Absorbed |          F(4, 44) =    204.785   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =        300
Absorbing 1 HDFE group                            F(   1,    294) =      22.85
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9650
                                                  Adj R-squared   =     0.9644
                                                  Within R-sq.    =     0.0721
                                                  Root MSE        =     0.0482

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0265916   .0055632    -4.78   0.000    -.0375404   -.0156429
-------------+----------------------------------------------------------------
    Absorbed |         F(4, 294) =   2022.849   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      1,520
Absorbing 1 HDFE group                            F(   1,   1514) =     172.08
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9329
                                                  Adj R-squared   =     0.9327
                                                  Within R-sq.    =     0.1021
                                                  Root MSE        =     0.0539

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0362655   .0027646   -13.12   0.000    -.0416883   -.0308427
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 1514) =   5220.484   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      7,220
Absorbing 1 HDFE group                            F(   1,   7214) =    1005.87
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9847
                                                  Adj R-squared   =     0.9847
                                                  Within R-sq.    =     0.1224
                                                  Root MSE        =     0.0198

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0147624   .0004655   -31.72   0.000    -.0156749     -.01385
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 7214) = 115746.058   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =         10
Absorbing 1 HDFE group                            F(   1,      4) =       1.00
                                                  Prob > F        =     0.3739
                                                  R-squared       =     0.9996
                                                  Adj R-squared   =     0.9990
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0075

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |   .0047619   .0047619     1.00   0.374    -.0084593    .0179831
-------------+----------------------------------------------------------------
    Absorbed |           F(4, 4) =   2272.111   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =         50
Absorbing 1 HDFE group                            F(   1,     44) =      11.00
                                                  Prob > F        =     0.0018
                                                  R-squared       =     0.9967
                                                  Adj R-squared   =     0.9964
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0130

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0122265   .0036864    -3.32   0.002     -.019656    -.004797
-------------+----------------------------------------------------------------
    Absorbed |          F(4, 44) =   3365.506   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =        510
Absorbing 1 HDFE group                            F(   1,    504) =     126.00
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9902
                                                  Adj R-squared   =     0.9901
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0173

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0171682   .0015295   -11.22   0.000    -.0201731   -.0141633
-------------+----------------------------------------------------------------
    Absorbed |         F(4, 504) =  12740.416   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+
(converged in 1 iterations)

HDFE Linear regression                            Number of obs   =      8,190
Absorbing 1 HDFE group                            F(   1,   8184) =    2046.00
                                                  Prob > F        =     0.0000
                                                  R-squared       =     0.9588
                                                  Adj R-squared   =     0.9588
                                                  Within R-sq.    =     0.2000
                                                  Root MSE        =     0.0107

------------------------------------------------------------------------------
       voted |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
no_dmv_match |  -.0106576   .0002356   -45.23   0.000    -.0111194   -.0101957
-------------+----------------------------------------------------------------
    Absorbed |        F(4, 8184) =  47130.661   0.000             (Joint test)
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
    election |            5               5              0     | 
---------------------------------------------------------------+

. 
. collapse (sum) count, by(total_pre_treat)

. svmat results 

. keep total_pre_treat results*

. renvars results1 results2 results3 results4 \ b se tot_treat tot

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/voter_id/Replication/table_a5.log
  log type:  text
 closed on:  17 Aug 2020, 15:04:52
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
